package use;

import java.io.IOException;
import java.util.Scanner;

public class WorkSystem {
    Customer customer = new Customer();
    Register register = new Register();
    Personnel personnel = new Personnel();

    public void  welcome() throws IOException {
        System.out.println("欢迎进入点歌系统，请做出选择");
        System.out.println("1、用户注册" + "  " + "2、顾客登录" + "  " + "3、管理员登录" + "  " + "4、退出界面");
        Scanner sc = new Scanner(System.in);
        String user = sc.next();
        switch (user) {
            case "1":
                register.regist();
                break;
            case "2":
                customer.cusLogin();
                break;
            case "3":
                personnel.perLogin();
                break;
            case "4":
                System.out.println("退出点歌界面，欢迎下次使用！");
                break;
            default:
                System.out.println("功能号不存在！请正确输入功能号！");
                welcome();
                break;
        }
    }
}